package cn.edu.suse.epilepsy.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @Author: QingShu
 * @Date: 2024/7/7 22:23
 */
@Data
@TableName("tb_doc_info")
public class DoctorManage {
    @TableId(value = "doc_info_id", type = IdType.AUTO)
    private Integer id;
    @TableField(value = "doc_info_name")
    private String name;
    @TableField(value = "doc_info_sex")
    private String sex;
    @TableField(value = "doc_info_phone")
    private String phone;
    @TableField(value = "doc_info_hospital")
    private String hospital;
    @TableField(value = "doc_info_professor")
    private String professor;
    @TableField(value = "doc_info_dep")
    private String department;
    @TableField(value = "doc_info_year")
    private Integer year;
    @TableField(value = "doc_info_role")
    private String role;
    @TableField(value = "doc_info_type")
    private String type;
    @TableField(value = "doc_info_avatar")
    private String avatar;
    @TableField(value = "doc_info_pic")
    private String pic;
    @TableField(value = "doc_info_coin")
    private Integer coin;
    @TableField("doc_info_descp")
    private String descp;
    @TableField("doc_info_status")
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @TableField("created")
    private Date date;
}
